package org.simplecrm.service.event.eventtype;


import org.simplecrm.domain.event.eventtype.EventType;
import org.simplecrm.repository.event.eventtype.EventTypeDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by oler on 12.09.14.
 */
@Service
public class EventTypeServiceImpl implements EventTypeService {

    @Autowired
    private EventTypeDAO eventTypeDAO;

    @Override
    @Transactional
    public List<EventType> getAllEventTypes() {

        List res;
        res = eventTypeDAO.getAllEventTypes();
        return res;
    }
}
